import {getSaishiList,getSaishiContent,getSaishiIngInput,getSaishiSubmit,getSaishiField} from '@/api/saishi/saishi.js'
export default {
  namespaced: true,
  state: () => ({
	
	
  }),

  mutations: {
    
  },

  // 模块的 mutations 方法
  actions: {
	  //获取通知列表
	getSaishiListAction({commit},payload){
		getSaishiList(payload.data).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//获取赛事内容
	getSaishiContentAction({commit},payload){
		getSaishiContent(payload.matchId).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//获取正在进行的报名表单
	getSaishiIngInputAction({commit},payload){
		getSaishiIngInput(payload.matchId).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//赛事报名提交
	getSaishiSubmitAction({commit},payload){
		getSaishiSubmit(payload.data).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//通过表单id获取字段
		getSaishiFieldAction({commit},payload){
			getSaishiField(payload.formId).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
		}
		
  },

  // 模块的 getters 属性
  getters: {
	
  }
}